<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .p{
            width: 400px;
            height: 300px;
        }
        .img{
            width: 900px;
            height: 800px;
            position: fixed;
        }
    </style>
</head>
<body>
    <div style="display: flex;" class="">
        <img class="p" src="img/1.jpg" alt="">
        <img class="p" src="img/2.jpg" alt="">
        <img class="p" src="img/3.jpg" alt="">
    </div>
    
    <script src="../script/jquery.js"></script>
    <script>
        $(".p").mouseenter(function(){
            $("body").append(`<img class="img" src="${$(this).attr("src")}" alt="">`);
            console.log(1)
        })
        .mouseleave(function(){
            $(".img").remove();
        }).mousemove(function(e){
            let x=e.pageX;
            let y=e.pageY;
            $(".img").css({
                left:x+10+"px",
                top:y+10+"px"
            })
        })
    </script>
</body>
</html>